#include <stdio.h>
#include <Windows.h>

int main()
{
	DWORD start = GetTickCount();
	freopen("test.in", "r", stdin);
	freopen("test.out", "w", stdout);
	
	int money = 0;
	long long total = 0;
	scanf("%d", &money);
	for ( int i = 0; i <= money / 50; i++ ) {
		total += (money - i * 50) / 20 + 1;
	}
	printf("%lld", total);
	
	DWORD time = GetTickCount() - start;
	printf("\ntime = %.2f\n", (1000.0 * time) / 905 );
	fclose(stdin);
	fclose(stdout);
	return 0;
}
